﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="AddLabEvaluation.aspx.cs"
    Inherits="LabMS.Web.LabEvaluation.AddLabEvaluation" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>实验室自评</title>
    <link type="text/css" rel="stylesheet" href="../style/screen.css" />
    <!--[if lte IE 6]>
    <link type="text/css" rel="stylesheet" href="../style/ie6.css" />
    <![endif]-->
    <!--[if lte IE 7]>
    <link type="text/css" rel="stylesheet" href="../style/ie7.css" />
    <![endif]-->

    <script type="text/javascript" language="javascript">
        function refreshParent() 
        {
            if(this.window.opener != null)
            {
               window.opener.location.href = window.opener.location.href;
            }
        }
    </script>

</head>
<body class="mainBody">
    <form id="form1" runat="server">
        `<div class="main">
            <div id="pageInfo" class="clearfix">
                <div class="title">
                    <label>实验室自评</label>
                </div>
            </div>
        </div>
        <div style="padding: 5px;" class="main">
            <p>
                <asp:Button ID="SaveBtn" runat="server" Text="保存" OnClick="Save_OnClick" CssClass="button" />
            </p>
            <p>
                评估对象：
                <asp:DropDownList ID="LabDDL" runat="server" DataTextField="Lab_Name" DataValueField="ID">
                </asp:DropDownList>
                评估标准：
                <asp:DropDownList ID="KindDDL" runat="server" DataTextField="Name" DataValueField="Code"
                    AutoPostBack="true" OnSelectedIndexChanged="KindDDL_OnSelectIndexChange">
                </asp:DropDownList>
                评估主题：
                <asp:DropDownList ID="TitleDDL" runat="server" DataTextField="Title_Name" DataValueField="ID"
                    AutoPostBack="true" OnSelectedIndexChanged="TitleDDL_OnSelectIndexChange">
                </asp:DropDownList>
            </p>
          </div>
          <div class="main">
            <asp:GridView ID="LabEvalGridView" PageSize="10" CssClass="infoTable" OnPageIndexChanging="LabEvalGV_OnPageChange"
                DataKeyNames="ID" AllowPaging="true" AutoGenerateColumns="false" runat="server"
                Width="100%">
                <Columns>
                    <asp:BoundField DataField="StandarID" ShowHeader="false" Visible="false" />
                    <asp:BoundField DataField="St_Num" HeaderText="序号" HtmlEncode="false" />
                    <asp:BoundField DataField="St_Content" HeaderText="评估内容" />
                    <asp:TemplateField HeaderText="评估标准">
                        <ItemTemplate>
                            <asp:Label ID="StandardTBX" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "St_Standard")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="评估方式">
                        <ItemTemplate>
                            <asp:Label ID="MethodTBX" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "St_Method")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="评估说明">
                        <ItemTemplate>
                            <asp:Label ID="ExplainTBX" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "St_Explain")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="自评" ItemStyle-HorizontalAlign="center">
                        <ItemTemplate>
                            <asp:TextBox ID="SelfEvalTBX" TextMode="MultiLine" Rows="5" Width="120" Height="60"
                                runat="server"></asp:TextBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="评估">
                        <ItemTemplate>
                            <asp:RadioButton ID="IsRBL1" runat="server" Text="Y" GroupName="cb" />
                            <asp:RadioButton ID="IsRBL2" runat="server" Checked="true" Text="N" GroupName="cb" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="记事" ItemStyle-HorizontalAlign="center">
                        <ItemTemplate>
                            <asp:TextBox ID="EventTBX" runat="server" Rows="5" Width="120" Height="60" TextMode="MultiLine"></asp:TextBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <EmptyDataTemplate>
                    该主题暂无任何评估标准
                </EmptyDataTemplate>
                <HeaderStyle CssClass="header" />
                <PagerSettings FirstPageText="首页" LastPageText="最后页" NextPageText="后一页" PreviousPageText="前一页"
                    Mode="NextPreviousFirstLast" />
            </asp:GridView>
        </div>
    </form>

    <script type="text/javascript" src="../js/jQuery/jquery-1.3.1.js"></script>

    <script type="text/javascript">

        $(function(){
            /* 修改样式 */
            $("#LabEvalGridView > tbody > tr:even").not(":first").addClass("even");
            $("#LabEvalGridView > tbody > tr").not(":first")
                .hover(
                    function(){
                        $(this).addClass("hover");
                    },
                    function(){
                        $(this).removeClass("hover");
                });
        });

    </script>

</body>
</html>
